$.fn.formToJson = function () {
    var param = {};
    var form = this;//.serializeArray();
    $('input[type=hidden],input[type=text],input[type=radio],input[type=checkbox],input[type=password],select,textarea', form).each(function () {
        if (this.type === 'radio' || this.type === 'checkbox') {
            if (this.checked) {
                param[this.name] = $(this).val();
            }
        } else {
            param[this.name] = $(this).val();
        }
    });
    return param;
};

var AdminType = {
	1 : "管理员",
	2 : "操作员"
}
var ParkType = {
	1 : "小型车",
	2 : "中型车",
	3 : "大型车"
}
var State = {
	0 : "停用",
	1 : "启用"
}

var ParkState = {
	0 : "空闲",
	1 : "占用"
}

var VipType = {
	1 : "会员",
	2 : "非会员"
}